package com.example.jmmconsumerkotlin.base

import com.example.jmmconsumerkotlin.di.component.DaggerYstarAppCompoent
import com.socks.library.KLog
import com.ystarkotlin.application.YApplication
import dagger.android.AndroidInjector
import dagger.android.support.DaggerApplication

/**
 * Created by Ystar
 *Data 2019/9/3
 *
 */
class YstarApplication : YApplication() {

    override fun onCreate() {
        super.onCreate()

        DaggerYstarAppCompoent.builder().application(this).build().inject(this)
    }

    override fun applicationInjector(): AndroidInjector<out DaggerApplication>? {

        return DaggerYstarAppCompoent.builder().application(this).build()
    }
}